$(function(){
    $('#ma').change(function(){
        var ma = $('#ma').val();
        var zhanhao = 'hello';
        $('#diji').click(function(){
            if(ma == zhanhao){
                window.location.href = "hello.html";
            }else{
                $('.form span').text('密码错误！').css('color','red')
            }
        })
    })
})